package echo.vo;

/**
 * 商品修改类
 */
public class ItemModification {
    private String itemId;
    private String action;
    private Item item;
    private int quantity;

    public ItemModification() {
    }

    public ItemModification(String itemId, String action, Item item, int quantity) {
        this.itemId = itemId;
        this.action = action;
        this.item = item;
        this.quantity = quantity;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public Item getItem() {
        return item;
    }

    public void setItem(Item item) {
        this.item = item;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    @Override
    public String toString() {
        return "ItemModification{" +
                "itemId='" + itemId + '\'' +
                ", action='" + action + '\'' +
                ", item=" + item +
                ", quantity=" + quantity +
                '}';
    }
}
